<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
  <meta charset="UTF-8">
  <title>employee的修改</title>
  <!-- 引入CSS文件 -->
  <link rel="stylesheet" th:href="@{/static/layui/css/layui.css}">
</head>
<body>
<div class="layui-container">
  <div class="layui-progress" style="margin: 15px 0 30px;">
    <div class="layui-progress-bar" lay-percent="100%"></div>
  </div>
  <!--    一些小提示-->
  <blockquote class="layui-elem-quote" style="margin-top: 30px;">
    <div class="layui-text">
      <ul>
        <li>你当前的功能是：<span>模拟【修改】所有员工信息<span id="version"></span></span></li>
        <li>接口地址：/emp/update</li>
      </ul>
    </div>
  </blockquote>

  <!--    表单数据-->
  <form class="layui-form" th:action="@{/emp/update/}" method="post">

    <input name="_method" value="put" type="hidden">
    <input name="id" th:value="${target_employee.id}" type="hidden">

    <div class="layui-form-item">
      <label class="layui-form-label">用户名</label>
      <div class="layui-input-block">
        <input lay-verify="required" th:value="${target_employee.lastName}" name="lastName" placeholder="请输入用户名" required type="text"
               autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">email</label>
      <div class="layui-input-block">
        <input type="text" name="email" th:value="${target_employee.email}"  required lay-verify="required" placeholder="请输入email"
               autocomplete="off" class="layui-input">
      </div>
    </div>
    <div class="layui-form-item">
      <label class="layui-form-label">单选框</label>
      <div class="layui-input-block">
        <input type="radio" name="gender" value="1" title="男">
        <input type="radio" name="gender" value="0" title="女" checked>
      </div>
    </div>
    <div class="layui-form-item">
      <div class="layui-input-block">
        <button class="layui-btn"  lay-submit lay-filter="formDemo">立即提交</button>
        <button type="reset" class="layui-btn layui-btn-primary">重置</button>
      </div>
    </div>
  </form>

</div>

</div>
<!-- 引入JS文件 -->
<script th:src="@{/static/layui/layui.js}"></script>
</body>
</html>